/**
 * @file TcpApp_common.h
 * @brief Definitions common to TcpApp/TCP client and server
 * @Author: aple
 * @Date: 2025-9-27 9:20:10
 * @LastEditors: aple
 * @LastEditTime: 2025-9-27 18:37:50
 * @Verision: 1.0.0.0
 **/

#ifndef _TCP_APP_COMMON_H
#define _TCP_APP_COMMON_H

// Dependencies
#include "core/net.h"

// TcpApp/TCP port number
#define TCP_APP_TCP_SERVER_PORT 508
// Secure TcpApp/TCP port number
#define TCP_APP_TCP_SERVER_SECURE_PORT 808
// Maximum size of TcpApp/TCP ADU
#define TCP_APP_TCP_SERVER_MAX_ADU_SIZE (512+8)

// C++ guard
#ifdef __cplusplus
extern "C"
{
#endif

// C++ guard
#ifdef __cplusplus
}
#endif

#endif
